def med(a,b,c):
    if a>=b:
        if b>=c:
            return b
        elif a<=c:
            return a
        else:
            return c
    elif a>c:
        return a
    elif b>c:
        return c
    else:
        return b

a = int(input())
b = int(input())
c = int(input())

print("三数中间值为：%d"%med(a,b,c))